package com.zqx.strategy.specificstrategy;

import com.zqx.strategy.abstractstrategy.Discount;

/**
 * description: 具体策略类
 * @author zqx
 * @date 2018/09/04
 */
public class StudentDiscount implements Discount {

    private final double DISCOUNT = 0.8;
    @Override
    public double calculate(double price) {
        System.out.println("学生票");
        return price * DISCOUNT;
    }
}
